package com.house.system.domain;

import java.math.BigDecimal;

import com.house.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 租售类型对象 rental_type
 *
 * @author tc
 * @date 2022-02-04
 */
public class RentalType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 租售编号
     */
    private Long rentalId;

    /**
     * 房屋编号
     */
    private Long houseId;

    /**
     * 付押类型
     */
    private String payType;


    /**
     * 整租合租 (1:整租  0:合租)
     */
    private String entireOrShared;

    /**
     * 起租时长要求
     */
    private String rentalRequest;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 已租人数
     */
    private int rented;

    /**
     * 最多可租人数
     */
    private int needed;

    public int getRented() {
        return rented;
    }

    public void setRented(int rented) {
        this.rented = rented;
    }

    public int getNeeded() {
        return needed;
    }

    public void setNeeded(int needed) {
        this.needed = needed;
    }

    public void setRentalId(Long rentalId) {
        this.rentalId = rentalId;
    }

    public Long getRentalId() {
        return rentalId;
    }

    public void setHouseId(Long houseId) {
        this.houseId = houseId;
    }

    public Long getHouseId() {
        return houseId;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayType() {
        return payType;
    }


    public void setEntireOrShared(String entireOrShared) {
        this.entireOrShared = entireOrShared;
    }

    public String getEntireOrShared() {
        return entireOrShared;
    }

    public void setRentalRequest(String rentalRequest) {
        this.rentalRequest = rentalRequest;
    }

    public String getRentalRequest() {
        return rentalRequest;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("rentalId", getRentalId())
                .append("houseId", getHouseId())
                .append("payType", getPayType())
                .append("entireOrShared", getEntireOrShared())
                .append("rentalRequest", getRentalRequest())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("status", getStatus())
                .append("remark", getRemark())
                .toString();
    }
}
